home *** CD-ROM | disk | FTP | other *** search
- Path: vixen.cso.uiuc.edu!arh0268!not-for-mail
- From: Dannyman@uiuc.edu (Unknown)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Something goofy with fscanf(%s) ??
- Date: 27 Jan 1996 21:41:47 GMT
- Organization: University of Illinois at Urbana
- Message-ID: <4ee66r$ffk@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: arh0268.urh.uiuc.edu
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- It's me again.
-
- I'm working on a logfile anaylzer for AWS ... my special feature is that
- information is saved in datailes so that you can delete processed logfiles.
-
- It's still in early stages.
-
- I read in the old datafiles with fscanf(%d %s) as the format is;
- number text-string-no-spaces...
-
- I have a problem that always repeates itself during testing, take a look
- at and excerpt from a data file;
-
- 4 http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=&q=%22babe004%22
- 3 http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=&q=
- babe004
-
- Now what this says to me that when fscanf() hits the %22 in the string
- it's somehow interpreted funny and thus the second line is read back in as
- in the second line.
-
- Next time the log is processed, fscanf() dies because there are too many
- elements in the line.
-
- This is bad and very frustrating.
-
- Any ideas, please?
-
- --
- =====///====================================================================
- ====///=======This message brought to you by dannyman@uiuc.edu==============
- \\\///=========HOME PAGE! http://www.uiuc.edu/ph/www/djhoward ==============
- =\XX/A1200==================================================================
- "Our ship is broken. Can you make it go?"
-